void updateWithoutInput()
{
	if(((ball_y+radius>=bar_top)&&(ball_y<bar_bottom-bar_high/3))
	||((ball_y-radius<=bar_bottom)&&(ball_y-radius>bar_top-bar_high/3)))
	if((ball_x>=bar_left)&&(ball_x<=bar_right))
	ball_vy=-ball_vy;
	ball_x=ball_x+ball_vx;
	ball_y=ball_y+ball_vy;
	
	if((ball_x<=radius)||(ball_x>=Width-radius))
	ball_vx=-ball_vx;
	if((ball_x<=radius)||(ball_y>=High-radius))
	ball_vy=-ball_vy;
	 
}
void updateWithInput()
{
	char input;
	if(kbhit())
	{
		input=getch();
		if(input=='a'&&bar_left>0)
        {
        	bar_x=bar_x-15;
        	bar_left=bar_x-bar_width/2;
        	bar_right=bar_x+bar_width/2;
		}
		if(input=='d'&&bar_right<Width)
		{
			bar_x=bar_x+15;
        	bar_left=bar_x-bar_width/2;
        	bar_right=bar_x+bar_width/2;
		}		
		if(input=='w'&&bar_top>0)
		{
			bar_y=bar_y-15;
        	bar_top=bar_y-bar_high/2;
        	bar_bottom=bar_y+bar_high/2;
		}
		if(input=='s'&&bar_bottom<high)
		{
			bar_y=bar_y+15;
        	bar_top=bar_y-bar_high/2;
        	bar_bottom=bar_y+bar_high/2;
		}
    }
}
	
